-- GENERATED SPELL FOR [Spectral Death Knight] --


function spell0_16148(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(56408,pUnit)
pUnit:RegisterEvent('Sorts_16148', 581, 1)
end

function Sorts_16148(pUnit, Event)
local choix_sorts_16148 = math.random(0, 0)
if choix_sorts_16148 == 0 then
pUnit:RegisterEvent('spell0_16148', 1, 1)
end
end

function mob16148_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16148', math.random(1500, 3000), 1)
end

function mob16148_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16148_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16148_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16148, 1, 'mob16148_Action')
RegisterUnitEvent(16148, 2, 'mob16148_Leave')
RegisterUnitEvent(16148, 3, 'mob16148_Kill')
RegisterUnitEvent(16148, 4, 'mob16148_Die')
